package uit.nfcmenu.db.model;

import uit.nfcmenu.util.Utilities;
import android.graphics.Bitmap;


public class MenuModel {
	private int id;
	private String name;
	private String imageLink;
	private String description;
	private Bitmap bitmap;

	public MenuModel() {
	}
	
	@Override
	public String toString() {
		return "id="+id+", "
				+"name="+name+", "
//				+"des="+description+", "
//				+"imgLink="+imageLink+", "
//				+"bitmap="+(bitmap==null?"null":(bitmap.getWidth()+"x"+bitmap.getHeight())
				+"\n";
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return Utilities.getStringNotNull(name);
	}

	public void setImageLink(String imageLink) {
		this.imageLink = imageLink;
	}

	public String getImageLink() {
		return Utilities.getStringNotNull(imageLink);
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return Utilities.getStringNotNull(description);
	}

	public Bitmap getBitmap() {
		return bitmap;
	}

	public void setBitmap(Bitmap bitmap) {
		this.bitmap = bitmap;
	}
}